#pragma once

#include <linux/nodemask_types.h>

/*
 * Bitmasks that are kept for all the nodes.
 */
enum node_states
{
    N_POSSIBLE,      /* The node could become online at some point */
    N_ONLINE,        /* The node is online */
    N_NORMAL_MEMORY, /* The node has regular memory */
#ifdef CONFIG_HIGHMEM
    N_HIGH_MEMORY, /* The node has regular or high memory */
#else
    N_HIGH_MEMORY = N_NORMAL_MEMORY,
#endif
    N_MEMORY,            /* The node has memory(regular, high, movable) */
    N_CPU,               /* The node has one or more cpus */
    N_GENERIC_INITIATOR, /* The node has one or more Generic Initiators */
    NR_NODE_STATES
};

#define for_each_node_state(node, __state) \
    for ((node) = 0; (node) == 0; (node) = 1)

#define for_each_node(node) for_each_node_state(node, N_POSSIBLE)

#define nr_node_ids		1
